<?php
$tdatappadmin_main=array();
	$tdatappadmin_main[".ShortName"]="ppadmin_main";
	$tdatappadmin_main[".OwnerID"]="";
	$tdatappadmin_main[".OriginalTable"]="ppmain";


	
//	field labels
$fieldLabelsppadmin_main = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsppadmin_main["English"]=array();
	$fieldToolTipsppadmin_main["English"]=array();
	$fieldLabelsppadmin_main["English"]["ID"] = "ID";
	$fieldToolTipsppadmin_main["English"]["ID"] = "";
	$fieldLabelsppadmin_main["English"]["Category"] = "Category";
	$fieldToolTipsppadmin_main["English"]["Category"] = "";
	$fieldLabelsppadmin_main["English"]["Subcategory"] = "Subcategory";
	$fieldToolTipsppadmin_main["English"]["Subcategory"] = "";
	$fieldLabelsppadmin_main["English"]["Title"] = "Title";
	$fieldToolTipsppadmin_main["English"]["Title"] = "";
	$fieldLabelsppadmin_main["English"]["Price"] = "Price";
	$fieldToolTipsppadmin_main["English"]["Price"] = "";
	$fieldLabelsppadmin_main["English"]["Details"] = "Details";
	$fieldToolTipsppadmin_main["English"]["Details"] = "";
	$fieldLabelsppadmin_main["English"]["Fullinfo"] = "Fullinfo";
	$fieldToolTipsppadmin_main["English"]["Fullinfo"] = "";
	$fieldLabelsppadmin_main["English"]["Picture"] = "Picture";
	$fieldToolTipsppadmin_main["English"]["Picture"] = "";
	$fieldLabelsppadmin_main["English"]["UserID"] = "UserID";
	$fieldToolTipsppadmin_main["English"]["UserID"] = "";
	if (count($fieldToolTipsppadmin_main["English"])){
		$tdatappadmin_main[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsppadmin_main["Spanish"]=array();
	$fieldToolTipsppadmin_main["Spanish"]=array();
	$fieldLabelsppadmin_main["Spanish"]["ID"] = "ID";
	$fieldToolTipsppadmin_main["Spanish"]["ID"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Category"] = "Category";
	$fieldToolTipsppadmin_main["Spanish"]["Category"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Subcategory"] = "Subcategory";
	$fieldToolTipsppadmin_main["Spanish"]["Subcategory"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Title"] = "Title";
	$fieldToolTipsppadmin_main["Spanish"]["Title"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Price"] = "Price";
	$fieldToolTipsppadmin_main["Spanish"]["Price"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Details"] = "Details";
	$fieldToolTipsppadmin_main["Spanish"]["Details"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Fullinfo"] = "Fullinfo";
	$fieldToolTipsppadmin_main["Spanish"]["Fullinfo"] = "";
	$fieldLabelsppadmin_main["Spanish"]["Picture"] = "Picture";
	$fieldToolTipsppadmin_main["Spanish"]["Picture"] = "";
	$fieldLabelsppadmin_main["Spanish"]["UserID"] = "UserID";
	$fieldToolTipsppadmin_main["Spanish"]["UserID"] = "";
	if (count($fieldToolTipsppadmin_main["Spanish"])){
		$tdatappadmin_main[".isUseToolTips"]=true;
	}
}


	

	

$tdatappadmin_main[".shortTableName"] = "ppadmin_main";
$tdatappadmin_main[".nSecOptions"] = 0;
$tdatappadmin_main[".recsPerRowList"] = 1;	
$tdatappadmin_main[".tableGroupBy"] = "0";
$tdatappadmin_main[".mainTableOwnerID"] = "";
$tdatappadmin_main[".moveNext"] = 1;




$tdatappadmin_main[".showAddInPopup"] = false;

$tdatappadmin_main[".showEditInPopup"] = false;

$tdatappadmin_main[".showViewInPopup"] = false;


$tdatappadmin_main[".fieldsForRegister"] = array();

$tdatappadmin_main[".listAjax"] = false;

	$tdatappadmin_main[".audit"] = true;

	$tdatappadmin_main[".locking"] = false;
	
$tdatappadmin_main[".edit"] = true;
$tdatappadmin_main[".view"] = true;

$tdatappadmin_main[".exportTo"] = true;

$tdatappadmin_main[".printFriendly"] = true;

$tdatappadmin_main[".delete"] = true;

$tdatappadmin_main[".showSimpleSearchOptions"] = false;

$tdatappadmin_main[".showSearchPanel"] = true;


$tdatappadmin_main[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatappadmin_main[".addPageEvents"] = false;

$tdatappadmin_main[".arrKeyFields"][] = "ID";

// use datepicker for search panel
$tdatappadmin_main[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatappadmin_main[".isUseTimeForSearch"] = false;

$tdatappadmin_main[".isUseiBox"] = false;


	

	



$tdatappadmin_main[".isUseInlineJs"] = $tdatappadmin_main[".isUseInlineAdd"] || $tdatappadmin_main[".isUseInlineEdit"];

$tdatappadmin_main[".allSearchFields"] = array();

$tdatappadmin_main[".globSearchFields"][] = "Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Category", $tdatappadmin_main[".allSearchFields"]))
{
	$tdatappadmin_main[".allSearchFields"][] = "Category";	
}
$tdatappadmin_main[".globSearchFields"][] = "Subcategory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Subcategory", $tdatappadmin_main[".allSearchFields"]))
{
	$tdatappadmin_main[".allSearchFields"][] = "Subcategory";	
}
$tdatappadmin_main[".globSearchFields"][] = "Title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Title", $tdatappadmin_main[".allSearchFields"]))
{
	$tdatappadmin_main[".allSearchFields"][] = "Title";	
}
$tdatappadmin_main[".globSearchFields"][] = "Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Price", $tdatappadmin_main[".allSearchFields"]))
{
	$tdatappadmin_main[".allSearchFields"][] = "Price";	
}
$tdatappadmin_main[".globSearchFields"][] = "Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Details", $tdatappadmin_main[".allSearchFields"]))
{
	$tdatappadmin_main[".allSearchFields"][] = "Details";	
}


$tdatappadmin_main[".googleLikeFields"][] = "ID";
$tdatappadmin_main[".googleLikeFields"][] = "Category";
$tdatappadmin_main[".googleLikeFields"][] = "Subcategory";
$tdatappadmin_main[".googleLikeFields"][] = "Title";
$tdatappadmin_main[".googleLikeFields"][] = "Price";
$tdatappadmin_main[".googleLikeFields"][] = "Details";
$tdatappadmin_main[".googleLikeFields"][] = "Fullinfo";
$tdatappadmin_main[".googleLikeFields"][] = "Picture";
$tdatappadmin_main[".googleLikeFields"][] = "UserID";



$tdatappadmin_main[".advSearchFields"][] = "ID";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ID", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "ID";	
}
$tdatappadmin_main[".advSearchFields"][] = "Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Category", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Category";	
}
$tdatappadmin_main[".advSearchFields"][] = "Subcategory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Subcategory", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Subcategory";	
}
$tdatappadmin_main[".advSearchFields"][] = "Title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Title", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Title";	
}
$tdatappadmin_main[".advSearchFields"][] = "Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Price", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Price";	
}
$tdatappadmin_main[".advSearchFields"][] = "Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Details", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Details";	
}
$tdatappadmin_main[".advSearchFields"][] = "Fullinfo";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Fullinfo", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Fullinfo";	
}
$tdatappadmin_main[".advSearchFields"][] = "Picture";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Picture", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "Picture";	
}
$tdatappadmin_main[".advSearchFields"][] = "UserID";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("UserID", $tdatappadmin_main[".allSearchFields"])) 
{
	$tdatappadmin_main[".allSearchFields"][] = "UserID";	
}

$tdatappadmin_main[".isTableType"] = "list";


	



// Access doesn't support subqueries from the same table as main
$tdatappadmin_main[".subQueriesSupAccess"] = true;





$tdatappadmin_main[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatappadmin_main[".strOrderBy"] = $gstrOrderBy;
	
$tdatappadmin_main[".orderindexes"] = array();

$tdatappadmin_main[".sqlHead"] = "select `ID`,   `Category`,   `Subcategory`,   `Title`,   `Price`,   `Details`,   `Fullinfo`,   `Picture`,   `UserID`";
$tdatappadmin_main[".sqlFrom"] = "From `ppmain`";
$tdatappadmin_main[".sqlWhereExpr"] = "";
$tdatappadmin_main[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatappadmin_main[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatappadmin_main[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "ID";
	$tdatappadmin_main[".Keys"] = $tableKeys;

//	ID
	$fdata = array();
	$fdata["strName"] = "ID";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","ID"); 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ID";
	
		$fdata["FullName"]= "`ID`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatappadmin_main["ID"]=$fdata;
//	Category
	$fdata = array();
	$fdata["strName"] = "Category";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Category"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="CategoryName";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="CategoryName";
				$fdata["LookupTable"]="ppcategory";
	$fdata["LookupOrderBy"]="";
																$fdata["AllowToAdd"]=true; 
				
				//	dependent dropdowns	
	$fdata["DependentLookups"]=array();
	$fdata["DependentLookups"][]="Subcategory";
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Category";
	
		$fdata["FullName"]= "`Category`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Category"]=$fdata;
//	Subcategory
	$fdata = array();
	$fdata["strName"] = "Subcategory";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Subcategory"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="SubcategoryName";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="SubcategoryName";
				$fdata["LookupTable"]="ppsubcategory";
	$fdata["LookupOrderBy"]="";
										$fdata["UseCategory"]=true; 
	$fdata["CategoryControl"]="Category"; 
	$fdata["CategoryFilter"]="Category"; 
							$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Subcategory";
	
		$fdata["FullName"]= "`Subcategory`";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Subcategory"]=$fdata;
//	Title
	$fdata = array();
	$fdata["strName"] = "Title";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Title"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Title";
	
		$fdata["FullName"]= "`Title`";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Title"]=$fdata;
//	Price
	$fdata = array();
	$fdata["strName"] = "Price";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Price"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Price";
	
		$fdata["FullName"]= "`Price`";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Price"]=$fdata;
//	Details
	$fdata = array();
	$fdata["strName"] = "Details";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Details"); 
	
		
		
	$fdata["FieldType"]= 201;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Details";
	
		$fdata["FullName"]= "`Details`";
	
		
		
		
		
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=300";
		$fdata["nCols"] = 300;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Details"]=$fdata;
//	Fullinfo
	$fdata = array();
	$fdata["strName"] = "Fullinfo";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Fullinfo"); 
	
		
		
	$fdata["FieldType"]= 201;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Fullinfo";
	
		$fdata["FullName"]= "`Fullinfo`";
	
		
		$fdata["UseRTE"]=true; 
	
		$fdata["UseRTEBasic"] = true; 
	
		
		
				$fdata["Index"]= 7;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=300";
		$fdata["nCols"] = 300;
		
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Fullinfo"]=$fdata;
//	Picture
	$fdata = array();
	$fdata["strName"] = "Picture";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","Picture"); 
	
		
		$fdata["LinkPrefix"]="files/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "File-based Image";
	
		
		
			$fdata["ImageWidth"] = 0;
	$fdata["ImageHeight"] = 0;
	
		
		
	$fdata["GoodName"]= "Picture";
	
		$fdata["FullName"]= "`Picture`";
	
		
		
		
		
		
			$fdata["UploadFolder"]="files"; 
		$fdata["Index"]= 8;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappadmin_main["Picture"]=$fdata;
//	UserID
	$fdata = array();
	$fdata["strName"] = "UserID";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppadmin_main","UserID"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "UserID";
	
		$fdata["FullName"]= "`UserID`";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
				
		
		
		
			$tdatappadmin_main["UserID"]=$fdata;


	
$tables_data["ppadmin main"]=&$tdatappadmin_main;
$field_labels["ppadmin_main"] = &$fieldLabelsppadmin_main;
$fieldToolTips["ppadmin main"] = &$fieldToolTipsppadmin_main;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["ppadmin main"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["ppadmin main"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_ppadmin_main()
{
$proto0=array();
$proto0["m_strHead"] = "select";
$proto0["m_strFieldList"] = "`ID`,   `Category`,   `Subcategory`,   `Title`,   `Price`,   `Details`,   `Fullinfo`,   `Picture`,   `UserID`";
$proto0["m_strFrom"] = "From `ppmain`";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "ID",
	"m_strTable" => "ppmain"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "Category",
	"m_strTable" => "ppmain"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "Subcategory",
	"m_strTable" => "ppmain"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "Title",
	"m_strTable" => "ppmain"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "Price",
	"m_strTable" => "ppmain"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "Details",
	"m_strTable" => "ppmain"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "Fullinfo",
	"m_strTable" => "ppmain"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "Picture",
	"m_strTable" => "ppmain"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "UserID",
	"m_strTable" => "ppmain"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto23=array();
$proto23["m_link"] = "SQLL_MAIN";
			$proto24=array();
$proto24["m_strName"] = "ppmain";
$proto24["m_columns"] = array();
$proto24["m_columns"][] = "Category";
$proto24["m_columns"][] = "Details";
$proto24["m_columns"][] = "Fullinfo";
$proto24["m_columns"][] = "ID";
$proto24["m_columns"][] = "Picture";
$proto24["m_columns"][] = "Price";
$proto24["m_columns"][] = "Subcategory";
$proto24["m_columns"][] = "Title";
$proto24["m_columns"][] = "UserID";
$obj = new SQLTable($proto24);

$proto23["m_table"] = $obj;
$proto23["m_alias"] = "";
$proto25=array();
$proto25["m_sql"] = "";
$proto25["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto25["m_column"]=$obj;
$proto25["m_contained"] = array();
$proto25["m_strCase"] = "";
$proto25["m_havingmode"] = "0";
$proto25["m_inBrackets"] = "0";
$proto25["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto25);

$proto23["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto23);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

return $obj;
}
$queryData_ppadmin_main = createSqlQuery_ppadmin_main();
$tdatappadmin_main[".sqlquery"] = $queryData_ppadmin_main;



$tableEvents["ppadmin main"] = new eventsBase;
$tdatappadmin_main[".hasEvents"] = false;

?>
